<#if (subs??&&subs?size>0) >
	<#assign i = 1 >
	<#list subs as subscols>		
		<input type='hidden' id='tab-${subscols.tab.tableKey}' value='${subscols.tab.operType}' />
		<#assign isMore = subscols.tab.isMore!"" >

		<#if (isMore=="1")>
			<#assign subItem = subscols>
			<#include "addSubsSinglePageTemple.ftl"/>
		<#else>
			<form id="subsTabForm" class="subsTabForm" style="padding:0;margin:0;" autocomplete="off">
				<table id="${subscols.tab.tableKey}" sign='processTable'>
				</table>
			</form>
			<#assign isProcess="" >
			<script type="text/javascript" >
				var subs=[];
				<#if (subscols.cols?size>0) >
					<#assign width = 100 >
					<#assign editflag = "" >
					<#assign properties = "" >
					tables = {};
					tables.tab={id:'${subscols.tab.tableKey}',name:'${subscols.tab.shortNameCh}'};
					tables.cols=[];
						<#list subscols.cols as col>
							<#if (col.showType==Contants.FORM_SHOWTYPE_TEXTAREA) >
								<#assign width =200 >
							<#elseif (col.showType==Contants.FORM_SHOWTYPE_INTEGER||col.showType==Contants.FORM_SHOWTYPE_NUMBER) >
								<#assign width =50 >
							<#else>
								<#if (col.showType==Contants.FORM_SHOWTYPE_DATEBOX||col.showType==Contants.FORM_SHOWTYPE_DATETIMEBOX) >
									<#assign editflag = ",editable:false" >
								</#if>
								<#assign width = 70 >
							</#if>
							<#assign dataOptions="showType_:'"+(col.showType!"")+"',checkType_:'"+(col.checkType!"")+"',field:'"+(col.colName!"")+"',dataId_:'"+(col.dataId!"")+"',title:'"+(col.colNameCh!"")+"',isProcess:'"+(col.isProcess!"")+"',isRequire_:'"+(col.isRequire!"")+"',dataOnchange_:'"+(col.dataOnchange!"")+"',colLength_:"+col.colLength >
							<#if (col.properties??&&col.properties?length > 0) >
								<#assign end = col.properties?length-1 >
								<#assign properties=","+col.properties?substring(1,end) >
							</#if>
									
							tables.cols.push({${dataOptions},width:${width},height:50,editor:{type:'${col.showType}',options:{prompt:'请输入${col.colNameCh}'${editflag}${properties}}}});
							<#if (col.isProcess??&&col.isProcess==Contants.BASE_STATE) >
								<#assign isProcess=isProcess+subscols.tab.tableKey+"-"+col.colName+"," >
							</#if>							
						</#list>
					subs.push(tables);
				</#if>
			</script>
			<input type='hidden' class='subIsProcessTable' value="${isProcess}"/>			
		</#if>
		<#assign i = i+1 >
	</#list>
</#if>
